package com.account_protocol.pojo.dto;



import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data

public class UserDTO {


    @Length(min = 7,max = 13)
    private String account;

    @Length(min=7, max = 14,message = "密码长度长度需要在7到14的范围内")
    private String password;


    @Length(min=1,max = 7,message = "名称最长七个字并且不能为空")
    private String nickname;
}
